<extend name="Layout/ins_page" />
<block name="content">
    <form id="downloadexcel" action="/index.php?m=&c=report&a=activesap" method="post" enctype="multipart/form-data">

        <if condition="($hasErrors eq YES) ">
            <span class="alert-danger">有错误</span>
            <input type="hidden" name="activetype" id="activetype" value=""/>
            <a  class="btn btn-sm btn-info" onclick="download_excel();">下载错误信息</a>
            <a  class="btn btn-sm btn-info" onclick="active_import();">SAP导入</a>
            <else />
            <span class="alert-danger">无错误</span>
        </if>

    </form>
    <script>
        function download_excel() {

            $("#activetype").val(1);
            $("#downloadexcel").submit();
        }

        function active_import() {

            $("#activetype").val(2);
            $("#downloadexcel").submit();
        }
    </script>
</block>
